<?php
class LanguageServer {
	public static $languages = 'chinese';
	public function paging($numberEachPage = 10){
		$count = HttpDaoManager::getLanguageDao()->count();
		$page = new Page($count, $numberEachPage);
		$limit[0]= $page->which;
		$limit[1]=$numberEachPage;
		$list = HttpDaoManager::getLanguageDao()->getList($limit);
		$page1= $page->returnPage("?".ClassManager::getToos()->combinationGet('page')."&page=");
		$data['list'] =$list;
		$data['page'] = $page1;
		return $data;
	}
	public function deleteBatchByid($id){
		if (is_array($id)){
			$id = implode(',',$id);
		}
		HttpDaoManager::getLanguageDao()->deleteBatchByid($id);
	}
	public function translation($mark){
		return HttpDaoManager::getLanguageDao()->getByMark($mark, LanguageServer::$languages);
	}
}

?>